#pragma once

/*
 * Per process flags
 */
#define PF_VCPU 0x00000001 /* I'm a virtual CPU */
#define PF_IDLE 0x00000002 /* I am an IDLE thread */
#define PF_NOFREEZE		0x00008000	/* This thread should not be frozen */

/* Used in tsk->__state: */
#define TASK_RUNNING 0x00000000
#define TASK_NEW 0x00000800
#define TASK_INTERRUPTIBLE 0x00000001
#define TASK_UNINTERRUPTIBLE 0x00000002
#define TASK_WAKEKILL 0x00000100
#define TASK_RTLOCK_WAIT		0x00001000

#define TASK_DEAD			0x00000080

/* Convenience macros for the sake of wake_up(): */
#define TASK_NORMAL (TASK_INTERRUPTIBLE | TASK_UNINTERRUPTIBLE)

/* Convenience macros for the sake of set_current_state: */
#define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE)

#define MAX_SCHEDULE_TIMEOUT (-1)
